/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.posplus.losspreventiondataimporter.service;

import com.posplus.strack.HistDAOFactory;
import com.posplus.strack.POSDAOFactory;
import com.posplus.strack.dao.RegisterHeaderDAO;
import com.posplus.strack.mapping.RegisterHeader;
import java.util.Calendar;
import java.util.List;

/**
 *
 * @author scottw
 */
public class RegisterHeaderService {

    private RegisterHeaderDAO registerHeaderDAO;
    
    public RegisterHeaderService(HistDAOFactory svtFactory) {
        this.registerHeaderDAO = svtFactory.getRegisterHeaderDAO();
    }

    public List<RegisterHeader> getByDate(Calendar start, Calendar end) {
        return registerHeaderDAO.getAllBetweenDate(start, end);
    }
    
}
